﻿/*==============================================================
 * IArticleService.cs
 * Copyright (C) 2014 贵州惠众互联 Inc. All rights reserved.
 *==============================================================
 * Author:   罗应红
 * Date:     2014/03/06 15:35:30.
 * Version:  1.0
 * QQ:		 88962800
*==============================================================*/

using System.Collections;
using System.Collections.Generic;
using QDT.Common;
using QDT.Core.Domain;
using QDT.Core.Domain.Enums;

namespace QDT.Services.ArticleMoudule {
    public interface IArticleService {

        /// <summary>
        /// 通过分类获得分类页模版
        /// </summary>
        /// <param name="cid"></param>
        /// <returns></returns>
        string GetCateTemp(int cid);

        /// <summary>
        /// 通过分类获得文章详情模版
        /// </summary>
        /// <param name="cid"></param>
        /// <returns></returns>
        string GetDetailTemp(int cid);

        /// <summary>
        /// 根据分类获得文章列表
        /// </summary>
        /// <param name="cid"></param>
        /// <param name="page"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        IPagedList<Article> QueryList(int page, int size);

        IPagedList<Article> QueryArticle(int page, int size,ArticleType type);
        /// <summary>
        /// 取得指定笔数和类型文章
        /// </summary>
        /// <param name="count"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        IList<Article> QueryLatestArticle(int count);

        /// <summary>
        /// 单条文章公告
        /// </summary>
        /// <returns></returns>
        IList<Article> SingleNew();

        Article GetArticleById(int id);
    }
}